from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
from admin import site

urlpatterns = patterns('',
    (r'^portfolio/', include('portfolio.urls')),
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^admin/(.*)', site.root),
)

# This allows Django to serve static files when you're developing your project.
# You'll have to do something else in production.
# More information: http://docs.djangoproject.com/en/dev/howto/static-files/
# -----------------------------------------------------------------------------
if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^static/(?P<path>.*)', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    )
